<div xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib"><h:form>
	<rich:panel styleClass="blue-panel">
		<ctg:status />
		<s:decorate id="wizar" template="/templates/wizard.xhtml">
			<ui:define name="step-title">#{messages['label.suggest.step.title.5']}</ui:define>
			<ui:define name="step-tip">#{messages['label.suggest.step.tip.5']}</ui:define>
			<ui:define name="step-form">
				<h:panelGrid columns="2" columnClasses="top,top">
					<h:panelGrid columns="2">
						<s:label value="#{messages['label.osobina.otvorenoOd']}"></s:label>
						<rich:calendar value="#{objektSuggest.smjestaj.otvorenoOd}" datePattern="dd.MM."
							popup="true"  showApplyButton="false" 	styleClass="field" />
						<s:label value="#{messages['label.osobina.otvorenoDo']}"></s:label>
						<rich:calendar value="#{objektSuggest.smjestaj.otvorenoDo}" datePattern="dd.MM."
							popup="true"  showApplyButton="false" 	styleClass="field" />
						<s:label value="#{messages['label.smjestaj.checkin']}"></s:label>
						<h:panelGroup>
							<h:panelGrid columns="4" cellpading="0" cellspacing="0">
								<h:selectOneMenu value="#{objektSuggest.smjestaj.checkInSat}">
									<f:selectItem itemLabel="00" itemValue="0"/>
									<f:selectItem itemLabel="01" itemValue="1"/>
									<f:selectItem itemLabel="02" itemValue="2"/>
									<f:selectItem itemLabel="03" itemValue="3"/>
									<f:selectItem itemLabel="04" itemValue="4"/>
									<f:selectItem itemLabel="05" itemValue="5"/>
									<f:selectItem itemLabel="06" itemValue="6"/>
									<f:selectItem itemLabel="07" itemValue="7"/>
									<f:selectItem itemLabel="08" itemValue="8"/>
									<f:selectItem itemLabel="09" itemValue="9"/>
									<f:selectItem itemLabel="10" itemValue="10"/>
									<f:selectItem itemLabel="11" itemValue="11"/>
									<f:selectItem itemLabel="12" itemValue="12"/>
									<f:selectItem itemLabel="13" itemValue="13"/>
									<f:selectItem itemLabel="14" itemValue="14"/>
									<f:selectItem itemLabel="15" itemValue="15"/>
									<f:selectItem itemLabel="16" itemValue="16"/>
									<f:selectItem itemLabel="17" itemValue="17"/>
									<f:selectItem itemLabel="18" itemValue="18"/>
									<f:selectItem itemLabel="19" itemValue="19"/>
									<f:selectItem itemLabel="20" itemValue="20"/>
									<f:selectItem itemLabel="21" itemValue="21"/>
									<f:selectItem itemLabel="22" itemValue="22"/>
									<f:selectItem itemLabel="23" itemValue="23"/>
								</h:selectOneMenu>
								<h:outputText value="h"/>
								<h:selectOneMenu value="#{objektSuggest.smjestaj.checkInMinute}">
									<f:selectItem itemLabel="00" itemValue="0"/>
									<f:selectItem itemLabel="15" itemValue="15"/>
									<f:selectItem itemLabel="30" itemValue="30"/>
									<f:selectItem itemLabel="45" itemValue="45"/>
								</h:selectOneMenu>
								<h:outputText value="m"/>
							</h:panelGrid>
						</h:panelGroup>
						<s:label value="#{messages['label.smjestaj.checkout']}"></s:label>
						<h:panelGroup>
							<h:panelGrid columns="4" cellpading="0" cellspacing="0">
								<h:selectOneMenu value="#{objektSuggest.smjestaj.checkOutSat}">
									<f:selectItem itemLabel="00" itemValue="0"/>
									<f:selectItem itemLabel="01" itemValue="1"/>
									<f:selectItem itemLabel="02" itemValue="2"/>
									<f:selectItem itemLabel="03" itemValue="3"/>
									<f:selectItem itemLabel="04" itemValue="4"/>
									<f:selectItem itemLabel="05" itemValue="5"/>
									<f:selectItem itemLabel="06" itemValue="6"/>
									<f:selectItem itemLabel="07" itemValue="7"/>
									<f:selectItem itemLabel="08" itemValue="8"/>
									<f:selectItem itemLabel="09" itemValue="9"/>
									<f:selectItem itemLabel="10" itemValue="10"/>
									<f:selectItem itemLabel="11" itemValue="11"/>
									<f:selectItem itemLabel="12" itemValue="12"/>
									<f:selectItem itemLabel="13" itemValue="13"/>
									<f:selectItem itemLabel="14" itemValue="14"/>
									<f:selectItem itemLabel="15" itemValue="15"/>
									<f:selectItem itemLabel="16" itemValue="16"/>
									<f:selectItem itemLabel="17" itemValue="17"/>
									<f:selectItem itemLabel="18" itemValue="18"/>
									<f:selectItem itemLabel="19" itemValue="19"/>
									<f:selectItem itemLabel="20" itemValue="20"/>
									<f:selectItem itemLabel="21" itemValue="21"/>
									<f:selectItem itemLabel="22" itemValue="22"/>
									<f:selectItem itemLabel="23" itemValue="23"/>
								</h:selectOneMenu>
								<h:outputText value="h"/>
								<h:selectOneMenu value="#{objektSuggest.smjestaj.checkOutMinute}">
									<f:selectItem itemLabel="00" itemValue="0"/>
									<f:selectItem itemLabel="15" itemValue="15"/>
									<f:selectItem itemLabel="30" itemValue="30"/>
									<f:selectItem itemLabel="45" itemValue="45"/>
								</h:selectOneMenu>
									<h:outputText value="m"/>
							</h:panelGrid>
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.minimalniBoravak.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.minimalniBoravak}" />
							<h:outputText value="#{messages['label.days']}" />
						</h:panelGroup>						
						<s:label value="#{messages['label.osobina.kreveti']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,8)}" />
						<s:decorate id="krevetiDecoration"	template="/templates/editSimple.xhtml" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,8)}" >
							<h:inputText value="#{objektSuggest.smjestaj.kreveti}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,8)}" required="#{objektSuggest.obavezan(objektSuggest.tipObjekta.idTipaObjekta,8)}"/>
						</s:decorate>	
						<s:label value="#{messages['label.osobina.pomocniKreveti']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,11)}" />
						<s:decorate id="pomKrevetiDecoration"	template="/templates/editSimple.xhtml" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,11)}">
						<h:inputText value="#{objektSuggest.smjestaj.pomocniKreveti}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,11)}" required="#{objektSuggest.obavezan(objektSuggest.tipObjekta.idTipaObjekta,11)}"/>
						</s:decorate>	
						<s:label value="#{messages['label.osobina.bracniKreveti']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,12)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.bracniKreveti}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,12)}"/>					
						<s:label value="#{messages['label.osobina.jednostrukiKreveti']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,13)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.jednostrukiKreveti}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,13)}" />
						<s:label value="#{messages['label.osobina.osobe']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,5)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.osobe}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,5)}"/>						
						<s:label value="#{messages['label.osobina.kat']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,10)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.kat}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,10)}"/>
						<s:label
							value="#{messages['label.osobina.konferencijskeDvorane']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,7)}"></s:label>
						<h:inputText
							value="#{objektSuggest.smjestaj.konferencijskeDvorane}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,7)}"/>
						<s:label value="#{messages['label.osobina.kupaonice']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,19)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.kupaonice}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,19)}"/>
						<s:label value="#{messages['label.osobina.mjestaZaKucNaKot']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,3)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.mjestaZaKucNaKot}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,3)}" />
						<s:label value="#{messages['label.osobina.parcele']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,9)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.parcele}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,9)}"/>
						<s:label value="#{messages['label.osobina.povrsina.s']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,6)}"></s:label>
						<h:panelGroup  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,6)}">
							<h:inputText value="#{objektSuggest.smjestaj.povrsina}"  />
							<h:outputText value="m2" />
						</h:panelGroup>
						<s:label value="#{messages['label.smjestaj.povrsinazemljista']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,21)}"></s:label>
						<h:panelGroup  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,21)}">
							<h:inputText value="#{objektSuggest.smjestaj.povrsinaZemljista}"/>
							<h:outputText value="m2" />
						</h:panelGroup>						
						<s:label value="#{messages['label.osobina.povrsinaKampMjesta.s']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,2)}"></s:label>
						<h:panelGroup  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,2)}">
							<h:inputText value="#{objektSuggest.smjestaj.povrsinaKampMjesta}" />
							<h:outputText value="m2" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.povrsinaTerase.s']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,20)}"></s:label>
						<h:panelGroup  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,20)}">
							<h:inputText value="#{objektSuggest.smjestaj.povrsinaTerase}"/>
							<h:outputText value="m2" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.sanitarniCvorovi']}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,4)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.sanitarniCvorovi}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,4)}" />
						<s:label value="#{messages['label.osobina.sobe.s']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,1)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.sobe}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,1)}" />
						<s:label value="#{messages['label.osobina.jednokrevetne_sobe']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,22)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.jednokrevetneSobe}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,22)}" />	
						<s:label value="#{messages['label.osobina.dvokrevetne_sobe']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,23)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.dvokrevetneSobe}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,23)}" />		
						<s:label value="#{messages['label.osobina.trokrevetne_sobe']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,24)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.trokrevetneSobe}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,24)}" />		
						<s:label value="#{messages['label.osobina.apartmani']}"  rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,25)}"></s:label>
						<h:inputText value="#{objektSuggest.smjestaj.apartmani}" rendered="#{objektSuggest.adekvatan(objektSuggest.tipObjekta.idTipaObjekta,25)}" />							
					</h:panelGrid>
					<h:panelGrid columns="2">
						<s:label value="#{messages['label.osobina.udljDoAmbulante.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoAmbulante}"/>
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label
							value="#{messages['label.osobina.udljDoBenzinskePostaje.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoBenzinskePostaje}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoCentraMjesta.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoCentraMjesta}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoHeliodroma.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoHeliodroma}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoLjekarne.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoLjekarne}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoMjenjacnice.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoMjenjacnice}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoNajblGrada.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoNajblGrada}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoParkaPrirode.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoParkaPrirode}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoPlaze.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoPlaze}" />
							<h:outputText value="m" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoTrajLuke.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoTrajLuke}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoTrgovine.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoTrgovine}" />
							<h:outputText value="m" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljDoZracLuke.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljDoZracLuke}" />
							<h:outputText value="km" />
						</h:panelGroup>
						<s:label value="#{messages['label.osobina.udljOdMora.s']}"></s:label>
						<h:panelGroup>
							<h:inputText value="#{objektSuggest.smjestaj.udljOdMora}" />
							<h:outputText value="m" />
						</h:panelGroup>
					</h:panelGrid>
				</h:panelGrid>
			<h:messages />	
			</ui:define>
			<ui:define name="buttn-cancel">
		<h:commandButton styleClass="submit"
							value="#{messages['label.objekt.input.button.update']}"
							action="#{objektSuggest.zapisiObjekt}" rendered="#{objektSuggest.editMode}" />
						<ctg:nbsp/>		
				<a:commandButton value="#{messages['label.input.cancel']}"
					action="end" immediate="true" />
			</ui:define>
			<ui:define name="buttn-prev">

				<a:commandButton value="#{messages['label.input.back']}"
					action="#{objektSuggest.previousStep}" reRender="wizardpanel" />
			</ui:define>
			<ui:define name="buttn-next">
					
				<a:commandButton value="#{messages['label.input.next']}"
					action="#{objektSuggest.nextStep}" reRender="wizardpanel" />
			</ui:define>
			<ui:define name="step-entered-data">

			</ui:define>
		</s:decorate>
	</rich:panel>

</h:form></div>